home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine CD 1995 / Archive Magazine CD 1995.iso / discs / prog_disc / volume_2 / issue_02 / extras / smith / pdgmanual < prev    next >
Encoding:
Text File  |  1988-09-22  |  9.8 KB  |  213 lines

  1. 06600000302800
  2. 1
  3. 21st Word PlusPage #Printer Driver Generator
  4. F0110030
  5. 9[..........................................................]111
  6. Ŵ⇨PRINTERDRIVERGENERATOR
  7. Ŵ⇨FOR
  8.  
  9. Ŵ⇨FIRSTWORDPLUS
  10.  
  11. Ŵ⇨Version1.00
  12.  
  13. ⇨Introduction
  14. ThePrinterDriverGeneratorforFirstWordPlusisdesignedto
  15. removethenecessityforeditingtherathercomplexhexfiles.
  16. Instead,auser-friendlyprogramcanberunto'edit'thefile,and
  17. "1stInstall"canberunasnormalto"compile"theeditedsource.
  18.  
  19. ⇨Limitations
  20. ThecurrentversionofPDGcannoteditaloadedhexfileusing
  21. decimalcharacters.However,akeystrokemodeisavailablefor
  22. editing.
  23.  
  24. Decimalmodemayonlybeusedfortheinitialentryofaprinter
  25. driver.Oncesaved,thecodesareconvertedintohex.
  26.  
  27. The'P'notationforplaceholdersdescribedbelowistranslated
  28. intothenative'highbitset'notationwhenadriverissaved.It
  29. isnottranslatedbackwhenadriverisloaded.
  30.  
  31. ⇨ModesofOperation
  32. PDGhasthreebasicmodesofoperation:
  33.  
  34.        1)ŴConfiguration€isusedtodefinethesixbytesofconfiguration
  35. status.Thismodeisdifferentfromtheotherssinceitis
  36. ⇦always€indecimalmode.
  37.  
  38.        2)ŴPrinterCharacteristics€isusedtodefinethecontrolcodesto
  39. besenttotheprintertoperformcertaintasks.
  40.  
  41.        3)ŴCharacterTranslation€isusedtodefinethesubsetofthe
  42. Archimedescharactersetthatmaybesenttotheprinter.It
  43. controlswhetheraparticularArchimedescharacteristobe
  44. ignored,sentdirectlytotheprinter,orbetranslatedintoa
  45. stringbeforebeingoutput.
  46.  
  47. ⇨ColourCodes
  48. ToassistthemajorityofArchimedesownerswhohaveacolour
  49. monitor,PDGusescolourthroughout.Thecolourcodesareas
  50. follows:
  51.        Red    -Promptforuserinput
  52.        Cyan    -Outputtext
  53.        Green   -Defaultvaluesanderrormessages
  54.        Yellow  -Userinput
  55.  
  56. TheCharacterTranslationmodeusescolourinaslightlydifferent
  57. manner-seebelow.
  58.  
  59. ø9[..........................................................]111
  60. ⇨StartingtheProgram
  61. Onstartingtheprogram,theuserwillbegiventheoptionof
  62. loadinganexistingprinterdriverhexfile.Ifthisopportunityis
  63. taken,acatalogueofthedirectory"&.1WP.hex"isdisplayed,and
  64. theuserispromptedforafilename.Toavoidloadingafile,
  65. simplypressthe<Escape>key.Ifitcouldbefound,thespecified
  66. fileisthenloaded.
  67.  
  68. ⇨Configuration
  69. TheuserisnowplacedinŴConfiguration€mode.Uptosixquestions
  70. willbeasked.TheywilleitherwarrantaYes/Noora(decimal)
  71. numberanswer.Ifthepromptis'?',answerbypressing"Y"or"N".
  72. Ifthepromptis'===>'thenanswerbykeyingadecimalnumberand
  73. pressing<Return>.
  74.  
  75. Ifany(green)valueappearsfollowingthe(red)prompt,thenthis
  76. isadefaultvalue.Toacceptit,justpress<Return>.
  77.  
  78. %⇨PrinterCharacteristics
  79. Thisisthemost-usedmodeoftheprogram.Variousquestionswill
  80. beasked,allofthemrequiringastringresponse(seebelow).The
  81. onlyexceptionstothisrulearetheYes/Noquestionsthatmayor
  82. maynotbeasked.Thesearedetailedbelow:
  83.  
  84. Ŵ"Doyouwanttoinputdatainhex?"
  85. €Thisisonlyaskedifnoprinterdriverhasbeenpreviously
  86. loaded.IftheanswerisYes,allfurtherresponsesinthis
  87. sectionareassumedtobeinhex.IftheanswerisNo,further
  88. responsesareassumedtobeindecimal.
  89.  
  90. Ŵ"DoyouwanttoincludecommandsforprintinginNLQ?"
  91. €Thisquestion,onlyaskedifdefiningadriverforamatrix
  92. printer,istosavethebotherofseparatelydefiningcodes
  93. forNLQ.IfthequestionisansweredwithYes,thecodesfor
  94. NLQwillbepromptedforseparately.IfansweredwithNo,the
  95. NLQcodeswillnotbepromptedfor.AnswerNoiftheprinter
  96. doesnotsupportNLQ,orifthehighlightcodesinNLQ⇦all€
  97. ⇦exactly€matchthoseindraftmode.
  98.  
  99. ŴSpecifyingthecodestring
  100. Thisisgenerallydonebykeyingastringofdecimalorhexnumbers
  101. (thetop-leftcornerofthescreenshowsthecurrentmode)
  102. separatedbyspaces.
  103.  
  104. Forexample,thecodetoturnunderliningonforanEPSONFX
  105. printerisenteredindecimalas"⇦27451€"andinhexas"⇦1B2D1€".
  106. However,theprintermanualmaywelllistthissequenceas
  107. "⇦Esc '-' 1€".
  108.  
  109. Fortunately,PDGdoesprovideanotherwayofspecifyingthecode
  110. string.For⇦printable€characters(andmostnon-printablecharac
  111. ters,butnotescape)itisquiteeasy.Simplypressthesingle
  112. quotekey"'"andthenpresstherequiredkey.Thesecondkeystroke
  113. madewillbeconvertedintotherelevantASCIIcode,anddisplayed
  114. ineitherhexordecimal,accordingtothecurrentsetting.Itis
  115. notnecessarytoentertheclosequote.So,indecimalmode,
  116. "⇦27 45 1€"maybeenteredas"⇦27 '-1€".
  117. 9[..........................................................]111
  118. Inotherrespects,enteringacodestringissimilartoentering
  119. theconfigurationoptionsasabove,inthatthegreendefault
  120. propertyoccursherealso.Notehoweverthatifacodeistobe
  121. removedfromtheprinterdriver,andadefaultisgiven,pressing
  122. <Return>willacceptthedefault.Tocancelthedefault,press
  123. <Space>before<Return>.
  124.  
  125. ŴUsingplaceholders
  126. Certaincommands(forexampleverticaltab)requiretheuseofa
  127. placeholder.Aplaceholderbytesignifiesthepositioninwhich
  128. FirstWordPluswillinsertanumericvalueinthecommandstring.
  129. However,manyprinterswillnotacceptasimplevaluecountingfrom
  130. zero(as1stWordPluswishestooutput),sothefacilityexiststo
  131. force1stWordPlustoaddaconstanttothenumericvaluebefore
  132. output.Typically,aprinterwillrequire1stWordPlustoadd
  133. either1,0or32(tomakethecommandargumentaprintable
  134. character).
  135.  
  136. Toinsertaplaceholder,simplytype'P'inthecommandstring.To
  137. force1stWordPlustoadd1use'P1'.Toadd32use'P32'in
  138. decimalmode,or'P20'inhexmode.
  139.  
  140. Sinceplaceholdersareinternallystoredby'1stInstall'asbytes
  141. withthehighbitset,wheneditinganexistingfile,'P'will
  142. appearas'80','P1'as'81'and'P32'/'P20'as'A0'.Thusany
  143. charactervalueofgreaterthanhex7Fistreatedasaplaceholder.
  144.  
  145. Thecommandsthatrequireplaceholdersareindicatedbythesuffix
  146. '⇦[P]€'intheprompt.
  147.  
  148.  
  149. ⇨ChangingCharacterTranslations
  150. Oncethelastcharacteristichasbeenentered,theprogramgoes
  151. intoŴcharactertranslation€mode.AmatrixofArchimedescharacters
  152. isdisplayed,andthemousepointerappears.
  153.  
  154. Ifacharacterisdisplayedinthematrixin⇦yellow€,itwillbe
  155. sentdirectlytotheprinter.Ifitisdisplayedin⇦red€,itwillbe
  156. ignoredatprinttime.Ifitisdisplayedin⇦green€,thenthereisa
  157. charactertranslationstringsetupforthatcharacter.
  158.  
  159. Tochangethecolourofacharacterinthematrix(andhenceit's
  160. printeravailability),pointtoitwiththemouse,andpressthe
  161. relevantbutton:⇦Select€foryellow,⇦Menu€forgreen,and⇦Adjust€for
  162. Red.
  163.  
  164. Whendefiningcharactertranslationsusingthe⇦menu€button,the
  165. samemethodisusedforinputasindefiningconfigurationstrings
  166. above.
  167.  
  168. Oncethecharactermatrixisdefined,movethemousepointertothe
  169. magentaword"End"atposition127inthecharactermatrix
  170. (character127-delete-cannotberedefined)andpressanymouse
  171. button.
  172.  
  173. ø9[..........................................................]111
  174. ⇨Savingthehexfile
  175. Once"End"hasbeenselectedonthecharactermatrix,theuseris
  176. givenanopportunitytorepeatthewholedialogue.Ifonlyafew
  177. fieldswereoriginallyenteredinerror,thenthemethodof
  178. providingthepreviously-enteredvalueasadefaultmeansthatthe
  179. usercansimplypress<Return>toskipthisquestiongivingthe
  180. sameresponseaslasttime.
  181.  
  182. Thisprocessmayberepeatedmanytimes.Oncetheoptionhasbeen
  183. selectedtosavethefile,processingcontinuesinasimilarmanner
  184. toloadingafile(seeabove).
  185.  
  186. Acatalogueof"&.1WP.hex"isdisplayedifitisavailable,andthe
  187. userispromptedforafilename.Ifaprinterdriverwaspreviously
  188. loaded,it'sfilenamewillbethedefault.Ifnoprinterdriverwas
  189. loaded,thefirstwordoftheprinternamewillbeusedasa
  190. defaultfilename.Ifthiscontainsbadcharactersforafilename,
  191. ADFSwillgenerateanerror,andtheuserisre-promptedfora
  192. filename.
  193.  
  194. ⇨AnyQueries
  195. Ifyoustillhaveanyqueries,Iwillbegladtohelp-contactme
  196. viaPaulBeverleyof☓Archive€.
  197.  
  198.